<?php

namespace YmPhp\Admin\Tree\Actions;

use YmPhp\Admin\Tree\RowAction;

class Delete extends RowAction
{
    public function html()
    {
        $url = request()->fullUrl();

        return <<<HTML
<a style="line-height: 38px;background: #ff5b5b;margin-right: 5px; color: aliceblue;padding: 5px;border-radius: 3px;" href="javascript:void(0);"
    data-message="ID - {$this->getKey()}"
    data-redirect="{$url}"
    data-url="{$this->resource()}/{$this->getKey()}" data-action="delete"><i class="feather icon-trash"></i></a>
HTML;
    }
}
